﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using NC.Infrastructure.Domain.Record;
using NC.Infrastructure.DomainDto.Record;
using NC.Service.ApiRecord;

namespace NC.Web.Areas.Admin.Controllers
{
    public class ApiRecordController : Controller
    {
        private readonly IApiRecordService _apiRecordService;
        

        public ApiRecordController(IApiRecordService apiRecordService)
        {
            this._apiRecordService = apiRecordService;
        }

        // GET: Admin/ApiRecord
        public ActionResult Index()
        {
            return View(new List<RecordListDto>());
        }

        public ActionResult Details(int id)
        {
            var record = _apiRecordService.Get(id);
            return PartialView(record);
        }
    }
}